package models

import (
    "alert-dingtalk-hook/go-common/config"
    "alert-dingtalk-hook/go-common/utils"
)


func SendDingtalk(msg string) (err error)  {
    ding := utils.Dingtalk{}
	ding.DingtalkURL = config.GetString("DingtalkURL")
	ding.DingtalkName = config.GetString("DingtalkName")
	return ding.SenMarkdown(ding.DingtalkName, msg)
}

